package top.heliming.youyou.item.service;

import java.util.List;
import top.heliming.youyou.common.pojo.PageResult;
import top.heliming.youyou.item.pojo.Sku;
import top.heliming.youyou.item.pojo.Spu;
import top.heliming.youyou.item.pojo.SpuBo;
import top.heliming.youyou.item.pojo.SpuDetail;

/**
 * description: //TODO
 *
 * @author: heliming
 * @date:2019/05/30 下午 11:40
 */
public interface GoodsService {
  PageResult<SpuBo> querySpuByPageAndSort(Integer page, Integer rows, Boolean saleable, String key);
  void save(SpuBo spu);
  SpuDetail querySpuDetailById(Long id);
  List<Sku> querySkuBySpuId(Long spuId);
  void update(SpuBo spu);
  Spu querySpuById(Long id);
  Sku querySkuById(Long id) ;

}
